cmake_minimum_required(VERSION 3.22)


set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/bin)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

project(OCCTOerview LANGUAGES CXX)

find_package(Qt5 COMPONENTS Widgets REQUIRED)
find_package(OpenCASCADE REQUIRED)
file(GLOB_RECURSE CPP_SRC "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")

add_executable(${PROJECT_NAME}
  ${CPP_SRC}
  OCCTOverview.qrc
  Samples.qrc
)

target_link_libraries(${PROJECT_NAME} PRIVATE
    ${OpenCASCADE_LIBRARIES}
    Qt5::Widgets)
